<?php
include dirname(__FILE__) . "/../config/functions.php";

$optionsQuery = mysql_query("SELECT * FROM `option`");
while($row = mysql_fetch_assoc($optionsQuery))    $options[$row['key']] = $row['value'];

?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?= $options['site_name'] ?></title>
        <meta property="og:title" content="<?= $options['site_name'] ?>">
        <meta property="og:site_name" content="<?= $options['site_name'] ?>">
        <meta property="og:type" content="<?= $options['type'] ?>">
        <meta property="og:url" content="<?= $options['url'] ?>">
        <meta property="og:image" content="<?= $options['image'] ?>">
        <meta property="fb:admins" content="<?= $options['admins'] ?>">
        <meta name="description" content="<?= $options['site_description'] ?>">
        <meta name="keywords" content="<?= $options['keywords'] ?>">
        <meta name="author" content="<?= $options['author'] ?>">
        <meta name="Robots" content="<?= $options['Robots'] ?>">
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
        <link href="../css/bootstrap.min.css" rel="stylesheet"/>
        <link href="../css/style.css" rel="stylesheet"/>
    </head>
    <body>
        <!-- Save for Web Slices (index.psd) -->
        <table width="950" height="1" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
            <tr>
                <td background="../images/bg.png">
                    <img src="../images/header.png" alt="Viral Marketing Script - Your MEGA Traffic on Over-Drive!" width="950" height="294" lowsrc="Viral Marketing Script - Your MEGA Traffic on Over-Drive!"></td>
            </tr>
            <tr>
                <td background="../images/bg.png"><div align="center"><strong><span class="style4">
                                :: <a href="../index.php">Home</a> 
                                :: <a href="../contact.php">Contact Us</a> 
                                :: <a href="../advertise.php">Advertise</a> 
                                :: <a href="login.php">Login</a> 
                                ::</span></strong></div>
                </td>
            </tr>
            <tr>
                <td background="../images/bg.png">
                    <div id="homeContent" class="row member-home" style="padding: 50px;">
                        <div style="margin: -45px 7px 30px;"  align='center'> 
                            <?php $_position = 'top'; ?>
                            <?php include dirname(__FILE__) . '/../_banner.php'; ?>
                        </div>
                        <div class="col-md-3">
                            <ul style="max-width: 300px;" class="nav nav-pills nav-stacked">
                                <li><a href="home.php">Home</a></li>
                                <li class="active"><a href="promotion.php">Promotional Center</a></li>
                                <li><a href="stats.php">Stats</a></li>
                                <li><a href="bonus.php">Bonus</a></li>
                                <li><a href="profile.php">Profile</a></li>
                                <li><a href="logout.php">Logout</a></li>
                            </ul>
                            </ul>
                        </div>
                        <div class="col-md-9 page-content">

                            <?php
                            require_once dirname(__FILE__) . "/../config/functions.php";
                            $content = mysql_query("SELECT `value` FROM `option` where `key` = 'member_area_home_page' ");
                            $content = mysql_fetch_assoc($content);
                            $sitename = mysql_query("SELECT `value` FROM `option` where `key` = 'site_name' ");
                            $sitename = mysql_fetch_assoc($sitename);
                            $content = str_replace("{sitename}", $sitename['value'], $content);
                            echo $content['value'];
                            ?>

                        </div>
                    </div>
                    <div style="margin: -45px 7px 30px;"  align='center'> 
                        <?php $_position = 'bottom'; ?>
                        <?php include dirname(__FILE__) . '/../_banner.php'; ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td background="../images/bg.png"><div align="center">
                        <?php include dirname(__FILE__) . '/../footer.php'; ?>
                    </div></td>
            </tr>
            <tr>
                <td>
                    <img src="../images/footer.png" width="950" height="108" alt=""></td>
            </tr>
        </table>
        <!-- End Save for Web Slices -->
    </body>
</html>